/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.CauHoiChoCuaHangDAO;
import com.miracleteam.miracle.dao.daoImpl.CauHoiChoCuaHangDAOImpl;
import com.miracleteam.miracle.entities.Cauhoichocuahang;
import com.miracleteam.miracle.services.CauHoiChoCuaHangService;
import java.util.List;

/**
 *
 * @author DangKhoa
 */
public class CauHoiChoCuaHangServiceImpl implements CauHoiChoCuaHangService{

    public String PhatSinhMaCauHoi() {
        CauHoiChoCuaHangDAO chDao=new CauHoiChoCuaHangDAOImpl();
        return chDao.PhatSinhMaCauHoi();
    }

    public List LayDSCauHoi(String maGH) {
        CauHoiChoCuaHangDAO chDao=new CauHoiChoCuaHangDAOImpl();
        return chDao.LayDSCauHoi(maGH);
    }
     public int ThemCauHoi(Cauhoichocuahang ch)
     {
         CauHoiChoCuaHangDAO chDao=new CauHoiChoCuaHangDAOImpl();
         return chDao.ThemCauHoi(ch);
     }
    public Cauhoichocuahang LayCauHoi(String ma)
    {
         CauHoiChoCuaHangDAO chDao=new CauHoiChoCuaHangDAOImpl();
         return chDao.LayCauHoi(ma);
    }
}
